package com.grad.why.studentsystem.mapper;

import com.grad.why.studentsystem.domain.Runtimecoursearrangeinforecord;
import com.grad.why.studentsystem.domain.RuntimecoursearrangeinforecordExample;
import com.grad.why.studentsystem.domain.Student;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RuntimecoursearrangeinforecordMapper {
    int countByExample(RuntimecoursearrangeinforecordExample example);

    int deleteByExample(RuntimecoursearrangeinforecordExample example);

    int deleteByPrimaryKey(Long recordid);

    int insert(Runtimecoursearrangeinforecord record);

    int insertSelective(Runtimecoursearrangeinforecord record);

    List<Runtimecoursearrangeinforecord> selectByExample(RuntimecoursearrangeinforecordExample example);

    Runtimecoursearrangeinforecord selectByPrimaryKey(Long recordid);

    int updateByExampleSelective(@Param("record") Runtimecoursearrangeinforecord record, @Param("example") RuntimecoursearrangeinforecordExample example);

    int updateByExample(@Param("record") Runtimecoursearrangeinforecord record, @Param("example") RuntimecoursearrangeinforecordExample example);

    int updateByPrimaryKeySelective(Runtimecoursearrangeinforecord record);

    int updateByPrimaryKey(Runtimecoursearrangeinforecord record);

    List<Runtimecoursearrangeinforecord> getStudentArriveInfoList(@Param("offset") int offset,@Param("limit") int limit,@Param("sort") String sort,@Param("search") String search);

    long getStudentArriveInfoListLength(@Param("search") String search);

    List<Student> getShouldArriveStudentNameLabels(@Param("courseArrangeId") Integer courseArrangeId);

    List<Runtimecoursearrangeinforecord> getRuntimeCourseArrangeInfoRecords();

    Long getMaxId();
}